package com.micro.modual.entity;

import javax.persistence.Id;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * <h1>商品sku表表 micro_goods_sku</h1>
 *
 * @author levelcoder
 * @date 2020-08-04 00:11:10
 */
@ApiModel(description = "商品sku表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "micro_goods_sku")
public class GoodsSku implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @ApiModelProperty(value = "主键编号")
    private Long id;


    /**
     * sku名称
     */
    @ApiModelProperty(value = "sku名称")
    private String skuName;


    /**
     * 商品价格
     */
    @ApiModelProperty(value = "商品价格")
    private BigDecimal goodsPrice;


    /**
     * 库存数量
     */
    @ApiModelProperty(value = "库存数量")
    private Integer stockNum;


    /**
     * 预警库存数量
     */
    @ApiModelProperty(value = "预警库存数量")
    private Integer alertStockNum;


    /**
     * 商品主图
     */
    @ApiModelProperty(value = "商品主图")
    private String masterImage;


    /**
     * 图片列表：轮播图
     */
    @ApiModelProperty(value = "图片列表：轮播图")
    private String rotateImageList;


    /**
     * 商品重量(克)
     */
    @ApiModelProperty(value = "商品重量(克)")
    private Integer goodsWeight;


    /**
     * spu编号
     */
    @ApiModelProperty(value = "spu编号")
    private String spuCode;


    /**
     * 商品分类编号
     */
    @ApiModelProperty(value = "商品分类编号")
    private String categoryCode;


    /**
     * 类目名称
     */
    @ApiModelProperty(value = "类目名称")
    private String categoryName;


    /**
     * 品牌名称
     */
    @ApiModelProperty(value = "品牌名称")
    private String brandName;


    /**
     * 商品规格
     */
    @ApiModelProperty(value = "商品规格")
    private String goodsSpec;


    /**
     * 商品销量
     */
    @ApiModelProperty(value = "商品销量")
    private Integer salesVolume;


    /**
     * 商品评论量
     */
    @ApiModelProperty(value = "商品评论量")
    private Integer commentVolume;


    /**
     * 商品状态 1.正常 2.下架 3.删除
     */
    @ApiModelProperty(value = "商品状态 1.正常 2.下架 3.删除")
    private Byte goodsStatus;


    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;


    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;


    /**
     * 商品条码
     */
    @ApiModelProperty(value = "商品条码")
    private String goodsBarCode;


    /**
     *
     */
    @ApiModelProperty(value = "")
    private String skuCode;

}
